package jp.co.sharp.android.parents.kidsguard.activity.sendImage.dialog;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import jp.co.sharp.android.parents.kidsguard.R;

/**
 *　待っている Dlg
 */
public class DealWithSendImageDlg extends Dialog {

    private String mDlgMessage;

    public DealWithSendImageDlg(@NonNull Context context) {
        super(context);
        this.mDlgMessage = "画像送信中";
    }

    public DealWithSendImageDlg(@NonNull Context context, int themeResId) {
        super(context, themeResId);
        this.mDlgMessage =  "画像送信中";
    }

    protected DealWithSendImageDlg(@NonNull Context context, boolean cancelable, @Nullable OnCancelListener cancelListener) {
        super(context, cancelable, cancelListener);
        this.mDlgMessage = "画像送信中";
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dlg_dealwith_send_image);
        TextView textViewMsg = (TextView)findViewById(R.id.textViewMsg);
        textViewMsg.setText(mDlgMessage);
    }

    public void editProcess(float v){
        TextView textViewMsg = (TextView)findViewById(R.id.textViewMsg);
        textViewMsg.setText("画像送信中...["+(int)v+"]");

    }
}
